<template>
  <div class="home" @click="login">我是主页</div>
</template>
 <script>
export default {
  data() {
    return {}
  },
  methods: {
    login() {
      this.$router.push('/main')
    }
  }
}
</script>